﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TreeListView.Models
{
    public class StationInfo
    {
        public string SellerName { get; set; }
        public string PayChannel { get; set; }
        public string StationName { get; set; }
        public string TotalFee { get; set; }
        /// <summary>
        /// 保险金额
        /// </summary>
        public string InsuranceFee { get; set; }
        /// <summary>
        /// 车票金额
        /// </summary>
        public string TicketPrice { get; set; }
        public List<StationInfo> Childrens { get; set; }

        public static List<StationInfo> Instance {
            get {
                return new List<StationInfo> {
                    new StationInfo{ InsuranceFee = "2.00", PayChannel = "微信", SellerName = "集团1", StationName = "东门车站", TicketPrice = "20.00", TotalFee = "22.00"
                        , Childrens = new List<StationInfo>
                        {
                            new StationInfo{InsuranceFee = "2.00", PayChannel = "微信", SellerName = "分公司1", StationName = "东门车站", TicketPrice = "40.00", TotalFee = "42.00"
                            , Childrens = new List<StationInfo>{
                                new StationInfo{InsuranceFee = "2.00", PayChannel = "微信", SellerName = "部门1", StationName = "东门车站", TicketPrice = "40.00", TotalFee = "42.00"
                                    , Childrens= new List<StationInfo>
                                    {
                                        new StationInfo{InsuranceFee = "2.00", PayChannel = "微信", SellerName = "售票员1", StationName = "东门车站", TicketPrice = "40.00", TotalFee = "42.00" },
                                        new StationInfo{InsuranceFee = "2.00", PayChannel = "微信", SellerName = "售票员2", StationName = "东门车站", TicketPrice = "40.00", TotalFee = "42.00" }
                                    }
                            }

                            }
                        },
                            new StationInfo{InsuranceFee = "2.00", PayChannel = "微信", SellerName = "分公司2", StationName = "东门车站", TicketPrice = "40.00", TotalFee = "42.00"
                            , Childrens = new List<StationInfo>{
                                new StationInfo{InsuranceFee = "2.00", PayChannel = "微信", SellerName = "部门2", StationName = "东门车站", TicketPrice = "40.00", TotalFee = "42.00"
                                    , Childrens= new List<StationInfo>
                                    {
                                        new StationInfo{InsuranceFee = "2.00", PayChannel = "微信", SellerName = "售票员3", StationName = "东门车站", TicketPrice = "40.00", TotalFee = "42.00" },
                                        new StationInfo{InsuranceFee = "2.00", PayChannel = "微信", SellerName = "售票员4", StationName = "东门车站", TicketPrice = "40.00", TotalFee = "42.00" }
                                    }
                            }

                            }
                        },
                            new StationInfo{InsuranceFee = "2.00", PayChannel = "微信", SellerName = "分公司3", StationName = "东门车站", TicketPrice = "40.00", TotalFee = "42.00" }
                    }
                    }       
                
                };
            }
        }
        
    }
}
